<?php


/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

$_MAMBOTS->registerFunction( 'onDisplayLeftAdminColumnHelpDesk', 'plgHelpDeskMenu_onDisplayLeftAdminColumnHelpDesk' );

/**
 * HelpDesk Plugin
 *
 * @package		Joomla
 * @subpackage	JFramework
 * @since 		1.5
 */

	function plgHelpDeskMenu_onDisplayLeftAdminColumnHelpDesk( ) 
	{
		global $database, $mainframe, $my, $mosConfig_absolute_path, $mosConfig_live_site;
		$success = false;
		$config 	= &HelpDeskConfig::getInstance();
		$statusid = $config->getFieldname( 'statusid' );
		
		?>        
			<div class="module_sidemenu">
			
	            <table class="adminheading">
	            <tr>
	                <th class="helpdesk" nowrap></th>
	            </tr>
	            </table>
	
	
	            <table class="invisible">
	            <tr>
	                <td>
	                <a href="index2.php?option=com_helpdesk"><?php echo HelpDeskText::_( 'Dashboard' ); ?></a>
	                </td>
	            </tr>
	            <tr>
	                <td>
		            - - - - - - -
	                </td>
	            </tr>
	            <tr>
	                <td>
	                	<?php 
	                		echo "<a href='index2.php?option=com_helpdesk&controller=tickets&task=list&{$statusid}=open'>".
		                	HelpDeskText::_( 'Open Tickets' ).
		                	"</a>"; 
	                	?>
	                </td>
	            </tr>
	            <tr>
	                <td>
	                	<?php 
	                		echo "<a href='index2.php?option=com_helpdesk&controller=tickets&task=list&{$statusid}=followup'>".
		                	HelpDeskText::_( 'Tickets for Follow-up' ).
		                	"</a>"; 
	                	?>
	                </td>
	            </tr>
	            <tr>
	                <td>
	                	<?php 
	                		echo "<a href='index2.php?option=com_helpdesk&controller=tickets&task=list&{$statusid}=feedback'>".
		                	HelpDeskText::_( 'Tickets Requiring Feedback' ).
		                	"</a>"; 
	                	?>
	                </td>
	            </tr>
	            <tr>
	                <td>
	                	<?php 
	                		echo "<a href='index2.php?option=com_helpdesk&controller=tickets&task=list&{$statusid}=closed'>".
		                	HelpDeskText::_( 'Closed Tickets' ).
		                	"</a>"; 
	                	?>
	                </td>
	            </tr>
	            <tr>
	                <td>
	                	<?php 
	                		echo "<a href='index2.php?option=com_helpdesk&controller=tickets&task=list&{$statusid}=all'>".
		                	HelpDeskText::_( 'All Tickets' ).
		                	"</a>"; 
	                	?>
	                </td>
	            </tr>
	            <tr>
	                <td>
		            - - - - - - -
	                </td>
	            </tr>
	            <tr>
	                <td>
	                <a href="index2.php?option=com_helpdesk&controller=categories&task=list"><?php echo HelpDeskText::_( 'Categories' ); ?></a>
	                </td>
	            </tr>
	            <tr>
	                <td>
	                <a href="index2.php?option=com_helpdesk&controller=fields&task=list"><?php echo HelpDeskText::_( 'Fields' ); ?></a>
	                </td>
	            </tr>
	            <tr>
	                <td>
	                <a href="index2.php?option=com_helpdesk&controller=frequents&task=list"><?php echo HelpDeskText::_( 'Frequently Used' ); ?></a>
	                </td>
	            </tr>
				
	            <tr>
	                <td>
		            - - - - - - -
	                </td>
	            </tr>
	            <tr>
	                <td>
	                <a href="index2.php?option=com_helpdesk&controller=addons&type=lang"><?php echo HelpDeskText::_( 'Languages' ); ?></a>
	                </td>
	            </tr>
	            <tr>
	                <td>
	                <a href="index2.php?option=com_helpdesk&controller=tools"><?php echo HelpDeskText::_( 'Tools' ); ?></a>
	                </td>
	            </tr>
	            <tr>
	                <td>
	                <a href="index2.php?option=com_helpdesk&controller=config"><?php echo HelpDeskText::_( 'Configuration' ); ?></a>
	                </td>
	            </tr>
	            </table>
				
				<p></p>
				
			</div>
				
		<?php
			
		$success = true;
		return $success;	
	}